package com.watson.webService.service.impl;

/**
 * // todo
 *
 * @author: llun
 * @date: 2022/2/16 15:40
 * @version: 1.0
 */


import com.watson.webService.service.DemoService;
import org.springframework.stereotype.Service;

import javax.jws.WebService;
import java.util.Date;

@WebService(serviceName = "DemoService", // 与接口中指定的name一致
        targetNamespace = "http://service.webService.watson.com", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.watson.webService.service.DemoService"// 接口地址
)
@Service
public class DemoServiceImpl implements DemoService {

    @Override
    public String sayHello(String user) {
        return user+"，现在时间："+"("+new Date()+")";
    }

}